<div class="tableform">
<div class="widgetconfig">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody>
    <tr>
        <th><{t app='b2c'}>图片一：<{/t}></th>
        <td>
            <input type=hidden name="pic_1" value="<{$setting.pic_1}>">
            <input name='pic_1' class="imgsrc" id="pic_1" value="<{$setting.pic_1}>">
            <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" onclick="addPic('pic_1')">
        </td>
    </tr>
    <tr>
        <th><{t app='b2c'}>链接一：<{/t}></th>
        <td>
            <input type="text" name="link_1" value="<{$setting.link_1}>">
        </td>
    </tr>
    <tr>
        <th><{t app='b2c'}>图片二：<{/t}></th>
        <td>
            <input type=hidden name="pic_2" value="<{$setting.pic_2}>">
            <input name='pic_2' class="imgsrc" id="pic_2" value="<{$setting.pic_2}>">
            <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" onclick="addPic('pic_2')">
        </td>
    </tr>
    <tr>
        <th><{t app='b2c'}>链接二：<{/t}></th>
        <td>
            <input type="text" name="link_2" value="<{$setting.link_2}>">
        </td>
    </tr>
    <tr>
        <th><{t app='b2c'}>图片三：<{/t}></th>
        <td>
            <input type=hidden name="pic_3" value="<{$setting.pic_3}>">
            <input name='pic_3' class="imgsrc" id="pic_3" value="<{$setting.pic_3}>">
            <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" onclick="addPic('pic_3')">
        </td>
    </tr>
    <tr>
        <th><{t app='b2c'}>链接三：<{/t}></th>
        <td>
            <input type="text" name="link_3" value="<{$setting.link_3}>">
        </td>
    </tr>
    <tr>
        <th><{t app='b2c'}>图片四：<{/t}></th>
        <td>
            <input type=hidden name="pic_4" value="<{$setting.pic_4}>">
            <input name='pic_4' class="imgsrc" id="pic_4" value="<{$setting.pic_4}>">
            <input type=button value="<{t app='b2c'}>上传图片<{/t}>" class="uploadbtn" onclick="addPic('pic_4')">
        </td>
    </tr>
    <tr>
        <th><{t app='b2c'}>链接四：<{/t}></th>
        <td>
            <input type="text" name="link_4" value="<{$setting.link_4}>">
        </td>
    </tr>
    
  </tbody>
</table>

</div>
</div>
<script>
    function addPic(id){
            var url='index.php?app=desktop&act=alertpages&goto='+encodeURIComponent("index.php?app=image&ctl=admin_manage&act=image_broswer&type=big");
            Ex_Loader('modedialog',function(){
            return new imgDialog(url,{onCallback:function(image_id,image_src){
                     $(id).value=image_src;
            }});
            });
        }
</script>